package com.va1m.mongodemo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Admin
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Document("user")
public class User {
    @Id
    private String id;
    private String name;
    private Integer age;

}
